<template>
  <div class>
    <el-table 
    :data="tableData" 
    highlight-current-row 
    size="mini" 
    border 
    header-cell-class-name="table-header-row-class"
    :row-class-name="tableRowClassName"
    style="width: 100%;" 
    max-height="250">
      <el-table-column type="selection" width="55"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  methods: {
    tableRowClassName ({ rowIndex }) {
      return (rowIndex % 2 !== 0) ? 'table-even-row-class' : 'table-odd-row-class'
    }
  },
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄"
        }
      ]
    };
  }
};
</script>
<style lang='scss' scoped>
</style>